import request from "@/utils/request";

export function pageMyAddress(params) {
    return request({
        url: '/shopping/addresses/pageMyAddresses',
        method: 'post',
        data: params
    })
}

export function addAddress(params) {
    return request({
        url: '/shopping/addresses/add',
        method: 'post',
        data: params
    })
}

export function updateAddress(params) {
    return request({
        url: '/shopping/addresses/update',
        method: 'put',
        data: params
    })
}

export function deleteAddress(addressId) {
    return request({
        url: `/shopping/addresses/delete/${addressId}`,
        method: 'delete'
    })
}